﻿@model Seven.DataModel.ViewModels.MenuAbout.MenuModel

<script src="~/Scripts/views/Menu/MenuForm.js" type="text/javascript"></script>

<form id="Menu-Form" name="Menu-Form">
    <div class="div_center">
        <fieldset>
            <legend class="panel-title">菜单信息</legend>
            @Html.HiddenFor(m => m.ID)
            <table class="TableBlock">
                <tr>
                    <td class="TableLabel">
                        名称：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.Name)
                    </td>
                    <td class="TableLabel">
                        排序号：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.SortNumber)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        图标：
                    </td>
                    <td class="TableData">
                        @Html.HiddenFor(model => model.IconCls)
                        <span class="list-span @(Model.IconCls)"></span>&nbsp;<a id="select_icon" href="javascript:void(0);" style="margin-left:75px;" class="easyui-linkbutton easyui-tooltip" data-options="plain:true,content:'选择图标',style:{background:'#c4de83'}">选择图标</a>
                    </td>
                    <td class="TableLabel">
                        父级菜单：
                    </td>
                    <td class="TableData">
                        @Html.HiddenFor(model => model.ParentID)
                        <label style="vertical-align:middle;">@Model.ParentName</label>&nbsp;<a id="select_parent" href="javascript:void(0);" class="easyui-linkbutton easyui-tooltip" data-options="iconCls:'icon-edit',plain:true,content:'修改父级菜单'"></a>
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        控制器：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.ControllerName)&nbsp;<a id="clear_Controller" href="javascript:void(0);" class="easyui-linkbutton easyui-tooltip" data-options="iconCls:'icon-reload',plain:true,content:'清空'"></a>
                    </td>
                    <td class="TableLabel">
                        动作：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.ActionName)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">访问地址：</td>
                    <td class="TableData">
                        <span id="url" class="required"></span>
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        显示：
                    </td>
                    <td class="TableData">
                        @Html.RadioButtonFor(m => m.IsShow, true)是
                        @Html.RadioButtonFor(m => m.IsShow, false)否
                    </td>
                    <td class="TableLabel">
                        系统菜单：
                    </td>
                    <td class="TableData">
                        @Html.RadioButtonFor(m => m.IsSystem, true)是
                        @Html.RadioButtonFor(m => m.IsSystem, false)否
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        备注：
                    </td>
                    <td class="TableData" colspan="3">
                        @Html.TextAreaFor(model => model.Remark, new { style = "width:95%;" })
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
</form>

<script>
    $(function () {
        window.views.Menu.MenuForm.initPage("Menu-Form");
    });
</script>
